<template>
  <FormItem :label="label" :prop="prop" :single="single">
    <PaasPageSelect
      :multiple="multiple"
      :disabled="see || disabled"
      :url="url"
      :of="of"
      :value="value"
      @input="input"
      @change="change"
    ></PaasPageSelect>
  </FormItem>
</template>
<script>
import PaasPageSelect from "@/components/PaasPageSelect";

export default {
  components: {
    PaasPageSelect
  },
  props: {
    multiple: {
      default: false
    },
    url: "",
    of: {},
    value: "",
    single: { default: false },
    disabled: { default: false },
    label: "",
    prop: ""
  },
  computed: {
    see() {
      return this.$store.state.forms.see;
    }
  },
  methods: {
    input(data) {
      this.$emit("input", data);
    },
    change(data) {
      this.$emit("change", data);
    }
  }
};
</script>